/* Layout */
import Layout from "@/layout";

export const transferRulesRoute = {
    path: "/transferRules",
    component: Layout,
    hidden: true,
    children: [
      {
        path: "ruleClassify",
        component: (resolve) =>
          require(["@/views/transferRules/ruleClassify"], resolve),
        title: "规则分类",
        name: "ruleClassify",
        meta: {
          title: "规则分类",
          subLocalRouter: true,
          activeMenu: "/transferRules/ruleClassify/index",
        },
      },
      {
        path: "rulesMaterial",
        component: (resolve) =>
          require(["@/views/transferRules/rulesMaterial"], resolve),
        title: "关联物料",
        name: "rulesMaterial",
        meta: {
          title: "关联物料",
          subLocalRouter: true,
          activeMenu: "/transferRules/rulesMaterial/index",
        },
      },
      {
        path: "editMaterial",
        component: (resolve) =>
          require(["@/views/transferRules/editMaterial"], resolve),
        title: "编辑物料",
        name: "editMaterial",
        meta: {
          title: "编辑物料",
          subLocalRouter: true,
        },
      },
      {
        path: "editStrategy",
        component: (resolve) =>
          require(["@/views/transferRules/editStrategy"], resolve),
        title: "编辑策略",
        name: "editStrategy",
        meta: {
          title: "编辑策略",
          subLocalRouter: true,
        },
      },
      {
        path: "editPolicyType",
        component: (resolve) =>
          require(["@/views/transferRules/editPolicyType"], resolve),
        title: "策略类型",
        name: "editPolicyType",
        meta: {
          title: "策略类型",
          subLocalRouter: true,
          activeMenu: "/transferRules/editPolicyType",
        },
      },
    ],
}

export default transferRulesRoute